package com.ehsunbehravesh.service.security.service.jaxb;

/**
 * Base class for all JAXB result classes;
 *
 * @author ehsun.behravesh
 */
public abstract class BaseResult {

  /**
   * Enumeration for status of the result.
   */
  public enum Status {

    SUCCESS(100), FAILURE(200);
    private int code;

    private Status(int code) {
      this.code = code;
    }
  }
  /**
   * Status of the result.
   */
  private Status status;
  /**
   * Some message e.g. error message in the case of failure.
   */
  private String message;

  public Status getStatus() {
    return status;
  }

  public void setStatus(Status status) {
    this.status = status;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }
}
